import React from 'react';
import { Space, Table, Tag } from 'antd';
const columns = [
    {
        title: '课程名',
        dataIndex: 'name',
        key: 'name',
    },
    {
        title: '教师',
        dataIndex: 'teacher',
        key: 'teacher',
    },
    {
        title: '学分',
        dataIndex: 'score',
        key: 'score',
    },

];
const data = [

    {

        key: '1',

        name: 'Vue',

        teacher: '王翔',

        score: 4

    },

    {

        key: '2',

        name: 'react',

        teacher: '张莹',

        score: 6

    },

    {

        key: '3',

        name: 'nodejs',

        teacher: '胡金扣',

        score: 2

    },

];
const MyTable = () => <Table columns={columns} dataSource={data} pagination={{ pageSize: 2 }} />;
export default MyTable;